package com.jxd.project.menu.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * @ClassName Goods
 * @Description TODO
 * @Author 刘成
 * @Date 2025/9/25 13:56
 * @Version 1.0
 */
@Data
@TableName("goods")
public class Goods {
    @TableId(value = "goodsid", type = IdType.AUTO)
    private int goodsId;
    @TableField("goodsname")
    private String goodsName;
    @TableField("goodsnum")
    private int goodsNum;
    @TableField("storetime")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate storeTime;
    @TableField("warehouseid")
    private int warehouseId;
    //忽视仓库名称
    @TableField(exist = false)
    private String warehouseName;
    @TableField("goodspicture")
    private String goodsPicture;
    @TableField("isdelete")
    @TableLogic
    private int isDelete;
}
